﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.DreamTour.Model;
using ZhouYu.DreamTour.ViewModel;

namespace ZhouYu.DreamTour.BLL.IService
{
    public interface ISmsInfoService:IDenpendecy
    {
        // 添加短信发送记录
        ResponseResult AddSmsInfo(string tel);

        // 查询验证码是否存在
        ResponseResult CheckCode(SmsInfo smsInfo);

        // 根据手机号查询用户是否存在
        ResponseResult IFExistUserByPhone(long phone);

        // 如果手机号未注册便将手机号存入数据库
        ResponseResult AddPhoneIntoUser(long phone);

        //发送酒店预定信息
        ResponseResult SendHotelSms(string phone, string userName, string hotelName);
    }
}
